import { defHttp } from '@/utils/http/axios';

// 获取违规记录
export const getViolationListApi = (params: any) =>
  defHttp.get({
    url: '/face_recognition/violation/violation_list',
    params,
  });

// 新增违规记录
export const addViolationApi = (data: any) =>
  defHttp.post({
    url: '/face_recognition/violation/add_violation',
    data,
  });
// 更新违规记录
export const updateViolationApi = (data: any) =>
  defHttp.put({
    url: '/face_recognition/violation/update_violation',
    data,
  });
// 删除违规记录
export const deleteViolationApi = (ViolationID: any) =>
  defHttp.delete({
    url: '/face_recognition/violation/delete_violation/' + ViolationID,
  });
